﻿@{
    ViewBag.Title = "Other Device Login";
}

   <div class="col-lg-9 col-sm-9 right_part">
          <div class="additional-web-pages OtherDeviceLogin-Page personalization-page">
            
             @*Header not show in case of Android App. *@
             @if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] == null || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPHONE_APP || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPAD_APP)
               { 
               <div class="Android-tittleMOB title clearfix">
              <h1>Home Wizard</h1>
              <div class="top-btn-per clearfix">
                <div id="back-button" class="back-button"><a href="javascript:void(0);"><img class="back-btn" alt="back-btn" src="@Url.Content("~/images/personalization-images/back-btn.png")"> 
                      <div class="back-mob-btn"><span class="glyphicon glyphicon-chevron-left"></span> Back</div>
                        </a></div>
                <div class="ques-button"><a href="#"><img alt="ques-btn" src="@Url.Content("~/images/personalization-images/ques-btn.png")" class="ques-bt"> <img alt="ques-btn" src="@Url.Content("~/images/personalization-images/mobques-btn.png")" class="mobques-bt"> </a></div>
              </div>
            </div>
             }
             @{
                  var sessionValue = "";
                  if (Session[HomeCareLibrary.Constants.SessionConstants.MODE]!=null)
                  {
                      sessionValue = Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString();
                  }
                  else{
                      sessionValue = "";
                  }
                      <input type="hidden" value="@sessionValue" id="hdnSessionValue" />
              }
                @{var androidContent = string.Empty;
                  if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] == null || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPHONE_APP || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPAD_APP)
                 {
                     androidContent = "class= personalization-content";
                 }
                  else
                  {
                      androidContent = "";
                  }
                     }

            <div class="main-content">
              <div @androidContent>
                <div class="personalization-bg">
                  <div class="personalization-inn">
                  <div class="personalization-data OtherDeviceLoginData">
                  <br/>
                  <h3 class="personalization-heading no-Txtshadow">Other Device Login</h3>                  
                 <p class="top-data">You can use your username and password <br/>
to access your Home Wizard info from <br/>
other devices and web browsers.</p><br/>
                  <div class="Dwelling-part login-form">
                          <div class="form-per">
                            @Html.Partial("_ChangeLoginPartial")
                            @*<form role="form">                            
                              <div class="form-group">
                                <label for="emailaddress">Username or email address</label>
                                <input type="text" placeholder="" class="input-box form-control" id="emailaddress">
                              </div>
                              <div class="form-group">
                                <label for="password">Password</label>
                                <input type="password" placeholder="" class="input-box form-control" id="password">
                              </div>
                              <p class="text-center"><a href="#">forgot password?</a></p>
                              <br>
                              <div class="button smallBtn">
                                <button type="submit" class="btn-per">Login</button>
                              </div>*@

                                @*<br />                                
                                <br />*@

                               Session Ids with values:
                      @if (ViewBag.sessionIds != string.Empty)
                   {
                      @ViewBag.sessionIds
                   } <br />                                                         

                    <br />
                     <span style="margin-left:10px;">
                 Session:
                    @if (ViewBag.getSession != string.Empty)
                   {
                      @ViewBag.getSession
                   }
                      </span>
             <br /> <br />

            <span style="margin-left:10px;">
                  JSON:
                     @if (ViewBag.JsonString != string.Empty)
                   {
                      @ViewBag.JsonString
                   }</span>

              <br /><br />
                         <span>
                  Request Content-Type:
                    @if (ViewBag.ContentType != string.Empty)
                   {
                      @ViewBag.ContentType
                   }
                      </span>

                      <br /><br />
                         <span>
                  Request URL:
                    @if (ViewBag.Url != string.Empty)
                   {
                      @ViewBag.Url
                   }
                      </span>

                            @*</form>*@
                          </div>
                        </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          </div>

@section script { 
  
    <script src="@Url.Content("~/js/iPhone/iPhone.js")"></script>
    <script src="~/js/admin/Changelogin/changelogin.js"></script>
}